
package com.carsite.dao;

import java.util.List;

import com.carsite.dao.Dao;
import com.carsite.model.OrderNo;

public interface OrderNoDao extends Dao {

    /**
     * Retrieves all of the orderNos
     */
    public List getOrderNos(OrderNo orderNo);

    /**
     * Gets orderNo's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param id the orderNo's id
     * @return orderNo populated orderNo object
     */
    public OrderNo getOrderNo(final Long id);

    /**
     * Saves a orderNo's information
     * @param orderNo the object to be saved
     */    
    public void saveOrderNo(OrderNo orderNo);

    /**
     * Removes a orderNo from the database by id
     * @param id the orderNo's id
     */
    public void removeOrderNo(final Long id);
}

